<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">

	window.onload=function(){
			
		//Initialise Graph
		var g = new canvasGraph('graph');
				
		//define some data
		gData=new Array();
				
		gData[0]={x:500,y:500,z:500};
		gData[1]={x:500,y:400,z:600};
		gData[2]={x:500,y:300,z:700};
		gData[3]={x:500,y:200,z:800};
		gData[4]={x:500,y:100,z:900};

		// sort data - draw farest elements first		
		gData.sort(sortNumByZ);
				
		//draw graph 
		g.drawGraph(gData);	

	}
</script>	
	
</body>
</html>